package com.ydjk.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ydjk.common.utils.DateUtils;
import com.ydjk.common.utils.pageData.PageData;
import com.ydjk.domain.JkInterfaceMessage;
import com.ydjk.domain.JkPushTemplateItem;
import com.ydjk.mapper.JkInterfaceMessageMapper;
import com.ydjk.mapper.JkPushTemplateMapper;
import com.ydjk.service.IJkInterfaceMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-31
 */
@Service
public class JkInterfaceMessageServiceImpl  extends ServiceImpl<JkInterfaceMessageMapper, JkInterfaceMessage>  implements IJkInterfaceMessageService
{
    @Autowired
    private JkInterfaceMessageMapper jkInterfaceMessageMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public JkInterfaceMessage selectJkInterfaceMessageById(String id)
    {
        return jkInterfaceMessageMapper.selectJkInterfaceMessageById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param jkInterfaceMessage 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<JkInterfaceMessage> selectJkInterfaceMessageList(JkInterfaceMessage jkInterfaceMessage)
    {
        return jkInterfaceMessageMapper.selectJkInterfaceMessageList(jkInterfaceMessage);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param jkInterfaceMessage 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertJkInterfaceMessage(JkInterfaceMessage jkInterfaceMessage)
    {
        jkInterfaceMessage.setCreateTime(DateUtils.getNowDate());
        return jkInterfaceMessageMapper.insertJkInterfaceMessage(jkInterfaceMessage);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param jkInterfaceMessage 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateJkInterfaceMessage(JkInterfaceMessage jkInterfaceMessage)
    {
        return jkInterfaceMessageMapper.updateJkInterfaceMessage(jkInterfaceMessage);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteJkInterfaceMessageByIds(String[] ids)
    {
        return jkInterfaceMessageMapper.deleteJkInterfaceMessageByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteJkInterfaceMessageById(String id)
    {
        return jkInterfaceMessageMapper.deleteJkInterfaceMessageById(id);
    }

    @Override
    public void addInterfaceMessageList( List<JkInterfaceMessage> allList) {
        this.saveBatch(allList);
    }

    @Override
    public List<JkInterfaceMessage> getInterfaceMessage(JkInterfaceMessage jkInterfaceMessage) {
        return jkInterfaceMessageMapper.selectJkInterfaceMessageList(jkInterfaceMessage);
    }
}
